<tpl var layoutBody={ />
<div data-identity="wxmp:menus:button" data-table="wxmp_menus_button">
	<div class="layui-breadcrumb">
		<a href="/manage/index.jspx">首页</a>
		<a href="/manage/wxmp/menus/button/index.jspx">按钮管理</a>
		<a href="javascript:;"> <cite>修改</cite></a>
	</div>
	<hr>
	<fieldset class="layui-elem-field">
		<legend>修改 按钮管理</legend>
		<div class="layui-field-box">
			<form class="layui-form" action="save.json?oper=update" lay-filter="mWxmpMenusButtonForm">
				<div class="layui-form-item hidden" data-type="int" data-isnull="NOT NULL" data-name="id">
					<label class="layui-form-label">ID：</label>
					<div class="layui-input-block">
						<input type="text" name="id" placeholder="请输入ID" autocomplete="off" class="layui-input" value="${record.id!}">
					</div>
				</div>
				<div class="layui-form-item" data-type="bigint" data-isnull="NO" data-name="id">
					<label class="layui-form-label">：</label>
					<div class="layui-input-block">
						<input type="text" name="id" placeholder="请输入" autocomplete="off" class="layui-input" value="${record.id!}">
					</div>
				</div>
				<div class="layui-form-item" data-type="bigint" data-isnull="NO" data-name="pid">
					<label class="layui-form-label">上级菜单ID：</label>
					<div class="layui-input-block">
						<input type="text" name="pid" placeholder="请输入上级菜单ID" autocomplete="off" class="layui-input" value="${record.pid!}">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="NO" data-name="uuid">
					<label class="layui-form-label">菜单编组：</label>
					<div class="layui-input-block">
						<input type="text" name="uuid" placeholder="请输入菜单编组" autocomplete="off" class="layui-input" value="${record.uuid!}">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="menuid">
					<label class="layui-form-label">菜单ID(推送后才有)：</label>
					<div class="layui-input-block">
						<input type="text" name="menuid" placeholder="请输入菜单ID(推送后才有)" autocomplete="off" class="layui-input" value="${record.menuid!}">
					</div>
				</div>
				<div class="layui-form-item" data-type="enum" data-isnull="NO" data-name="type">
					<label class="layui-form-label">响应动作类型：</label>
					<div class="layui-input-block">
						<input type="text" name="type" placeholder="请输入响应动作类型" autocomplete="off" class="layui-input" value="${record.type!}">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="NO" data-name="name">
					<label class="layui-form-label">菜单标题：</label>
					<div class="layui-input-block">
						<input type="text" name="name" placeholder="请输入菜单标题" autocomplete="off" class="layui-input" value="${record.name!}">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="key">
					<label class="layui-form-label">菜单KEY值：</label>
					<div class="layui-input-block">
						<input type="text" name="key" placeholder="请输入菜单KEY值" autocomplete="off" class="layui-input" value="${record.key!}">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="media_id">
					<label class="layui-form-label">媒体素材ID：</label>
					<div class="layui-input-block">
						<input type="text" name="mediaId" placeholder="请输入媒体素材ID" autocomplete="off" class="layui-input" value="${record.mediaId!}">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="appid">
					<label class="layui-form-label">小程序的appid：</label>
					<div class="layui-input-block">
						<input type="text" name="appid" placeholder="请输入小程序的appid" autocomplete="off" class="layui-input" value="${record.appid!}">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="pagepath">
					<label class="layui-form-label">小程序的页面路径：</label>
					<div class="layui-input-block">
						<input type="text" name="pagepath" placeholder="请输入小程序的页面路径" autocomplete="off" class="layui-input" value="${record.pagepath!}">
					</div>
				</div>
				<div class="layui-form-item" data-type="datetime" data-isnull="YES" data-name="create_time">
					<label class="layui-form-label">创建时间：</label>
					<div class="layui-input-block">
						<input type="text" name="createTime" placeholder="请输入创建时间" autocomplete="off" class="layui-input" value="${record.createTime!}">
					</div>
				</div>
				<div class="layui-form-item" data-type="datetime" data-isnull="YES" data-name="update_time">
					<label class="layui-form-label">更新时间：</label>
					<div class="layui-input-block">
						<input type="text" name="updateTime" placeholder="请输入更新时间" autocomplete="off" class="layui-input" value="${record.updateTime!}">
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<a class="layui-btn layui-btn-primary" href="javascript:history.go(-1)">返回</a>
						<button class="layui-btn" lay-submit lay-filter="mWxmpMenusButtonForm">立即提交</button>
					</div>
				</div>
			</form>
		</div>
	</fieldset>
</div>
<tpl }; />

<tpl var layoutScript={ />
<script type="text/javascript">
	layui.config({
		base: '${webCdn}/plugins/layui/modules/'
	}).extend({
		http: 'http/http.min',
		message: 'message/message.min'
	}).use(['element', 'message', 'form', 'http'], function() {
		// 绑定表单提交事件
		layui.form.on('submit(mWxmpMenusButtonForm)', function(data) {
			layui.http.post('save.json?oper=update', data.field, function (res) {
				layui.message.success(res.message, () => history.back());
			});

			return false;
		});
	});
</script>
<tpl }; />
<tpl include( "../../tpl/layout-scroll.html",{identity:"wxmp:menus:button",layoutBody:layoutBody,layoutScript:layoutScript}){}/>